Resource URL: /platform/<<version=3>>/protocols/ndmp/contexts/restore/<id>

    Overview: This resource applies to manage one NDMP restore context

     Methods: GET, DELETE

********************************************************************************

Method GET: View a NDMP restore context

       URL: GET /platform/<<version=3>>/protocols/ndmp/contexts/restore/<id>

There are no query arguments for this method.

GET response body schema:
{
  "type": [
    {
      "additionalProperties": false, 
      "type": "object", 
      "description": "A list of errors that may be returned.", 
      "properties": {
        "errors": {
          "items": {
            "additionalProperties": false, 
            "type": "object", 
            "description": "An object describing a single error.", 
            "properties": {
              "field": {
                "type": "string", 
                "description": "The field with the error if applicable."
              }, 
              "message": {
                "type": "string", 
                "description": "The error message."
              }, 
              "code": {
                "type": "string", 
                "description": "The error code."
              }
            }
          }, 
          "type": "array"
        }
      }
    }, 
    {
      "type": "object", 
      "description": "View a NDMP Context", 
      "properties": {
        "status": {
          "type": "string", 
          "description": "Whether the context is active."
        }, 
        "total_sessions": {
          "type": "integer", 
          "description": "The number of sessions in the context"
        }, 
        "sessions": {
          "type": "array", 
          "properties": {
            "status": {
              "type": "string", 
              "description": "The status of the session"
            }, 
            "bre_context_id": {
              "type": "string", 
              "description": "bre context id; This is not applicable to restore sessions."
            }, 
            "start_time": {
              "type": "time", 
              "description": "Session creation time"
            }, 
            "session_id": {
              "type": "string", 
              "description": "Session ID"
            }, 
            "stream_id": {
              "type": "string", 
              "description": "Stream ID"
            }
          }
        }, 
        "context_id": {
          "type": "string", 
          "description": "Context ID"
        }, 
        "start_time": {
          "type": "time", 
          "description": "Context creation time"
        }, 
        "context_expiration_time": {
          "type": "time", 
          "description": "Context expiration time"
        }, 
        "snapid": {
          "type": "integer", 
          "description": "Snapshot ID reserved for the context. This is not applicable to restore contexts."
        }, 
        "path": {
          "type": "string", 
          "description": "The directory of the backup. This is not applicable to restore contexts."
        }, 
        "type": {
          "type": "string", 
          "description": "Type of context; It can be bre, backup, and restore"
        }, 
        "id": {
          "type": "string", 
          "description": "Unique display id."
        }
      }
    }
  ]
}

********************************************************************************

Method DELETE: Delete a restore context

          URL: DELETE
               /platform/<<version=3>>/protocols/ndmp/contexts/restore/<id>

There are no query arguments for this method.

There is no JSON response body for this method.
